package com.ailanyin.admin.modules.system.service;

import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

/**
 * @author ailanyin
 * @version 1.0
 * @since 2021/11/4 0004 下午 16:04
 */
public interface SysFileService {

    /**
     * 文件上传
     *
     * @param file file
     * @return url
     */
    String fileUpload(MultipartFile file);

    /**
     *
     * 文件下载
     *
     * @param fileName 文件名
     * @param response response
     * @throws Exception Exception
     */
    void fileDownload(String fileName, HttpServletResponse response) throws Exception;
}
